<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>

<%@ include file="/_taglib.jsp" %>

<%@ include file="/_navbar.jsp" %>
<section class="content">
	<div class="container" id="data-container">
		<div class="col-md-11">
			<form class="required-validate" role="form" action="tbox/tboxMsgLog/save" method="post" onsubmit="return ajaxFormSubmit(this,'tbox/tboxMsgLog/list')">

				<input type="hidden" "tboxMsgLog__id" name="tboxMsgLog.id" value="${tboxMsgLog.id}">
				<!-- general form elements disabled -->
				<div class="box">
					<div class="box-body">

							<div class="form-group" style="display:inline-block;">
								<label>业务ID</label> 
								<input type="text" class="form-control {required:true, minlength:2}" style="width:260px"
									id="tboxMsgLog__aid"
									name="tboxMsgLog.aid" 
									value="${tboxMsgLog.aid}"
									placeholder="Enter ...">
							</div>
							<div class="form-group" style="display:inline-block;">
								<label>消息ID</label> 
								<input type="text" class="form-control {required:true, minlength:1}" style="width:260px"
									id="tboxMsgLog__mid"
									name="tboxMsgLog.mid" 
									value="${tboxMsgLog.mid}"
									placeholder="Enter ...">
							</div>
							<div class="form-group" style="display:inline-block;">
								<label>事件ID</label> 
								<input type="text" class="form-control {required:true, minlength:2}" style="width:260px"
									id="tboxMsgLog__eventId"
									name="tboxMsgLog.eventId" 
									value="${tboxMsgLog.eventId}"
									placeholder="Enter ...">
							</div>

							<div class="form-group" style="display:inline-block;">
								<label>设备标识号SN</label> 
								<input type="text" class="form-control {required:true, minlength:2}" style="width:260px"
									id="tboxMsgLog__sn"
									name="tboxMsgLog.sn" 
									value="${tboxMsgLog.sn}"
									placeholder="Enter ...">
							</div>
							<div class="form-group" style="display:inline-block;">
								<label>IMSI号码</label> 
								<input type="text" class="form-control {required:true, minlength:2}" style="width:200px"
									id="tboxMsgLog__imsi"
									name="tboxMsgLog.imsi" 
									value="${tboxMsgLog.imsi}"
									placeholder="Enter ...">
							</div>
							<div class="form-group" style="display:inline-block;">
								<label>车辆VIN码</label> 
								<input type="text" class="form-control {required:true, minlength:2}" style="width:200px"
									id="tboxMsgLog__vin"
									name="tboxMsgLog.vin" 
									value="${tboxMsgLog.vin}"
									placeholder="Enter ...">
							</div>
							<div class="form-group" style="display:inline-block;">
								<label>事件时间</label> 
								<input type="text" class="form-control {required:true, minlength:2}" style="width:200px"
									id="tboxMsgLog__eventTime"
									name="tboxMsgLog.eventTime" 
									value="${tboxMsgLog.eventTime}"
									placeholder="Enter ...">
							</div>
							<div class="form-group" style="display:inline-block;">
								<label>业务内容</label> 
								<input type="text" class="form-control {required:true, minlength:2}" style="width:200px"
									id="tboxMsgLog__appData"
									name="tboxMsgLog.appData" 
									value="${tboxMsgLog.appData}"
									placeholder="Enter ...">
							</div>
							


					</div>					<!-- /.box-body -->
					<div class="box-footer" align="center">
						<button type="submit" class="btn btn-primary"
							style="postion: absolute; left: 45%;">保存</button>
					</div>
				</div>				<!-- /.box -->
			</form>
		</div>
	</div>
</section>


<%  
//    String path = request.getContextPath();  
//    String basePath = request.getScheme() + "://"  
//            + request.getServerName() + ":" + request.getServerPort()  
//            + path + "/";  
%> 

<%@ include file="/_edit_js.jsp" %>

<SCRIPT type="text/javascript">
	$(function (){
		kedit("user__remark");
		
		//有头像则，显示头像
		if ("${user.picture}" != null && "${user.picture}" != ""){
			$('#img-pic').attr('src','${user.picture}');
		}
	});
	
	function initPassword(userId){
		var param = jQuery.parseJSON('{"userId":"'+userId+'"}');
		ajaxPost('sys/user/initPassword',param);
	}
</SCRIPT>

